webrtc wpt: pass test function in more tests passes the test argument in promise_test and async_test so it can be used to add cleanup. followup on https://chromium-review.googlesource.com/c/chromium/src/+/1047674 using the same codemod but a better, non-regexp way to extract the script tag content. BUG=836871 Change-Id: I41905ce25e22121a6e8b53d37af86b073e020b5c Reviewed-on: https://chromium-review.googlesource.com/1049865 Reviewed-by: Harald Alvestrand <hta@chromium.org> Commit-Queue: Harald Alvestrand <hta@chromium.org> Cr-Commit-Position: refs/heads/master@{#556795} 
diff --git a/webrtc/RTCPeerConnection-peerIdentity.html b/webrtc/RTCPeerConnection-peerIdentity.html index d5f9db9..2d93880 100644 --- a/webrtc/RTCPeerConnection-peerIdentity.html +++ b/webrtc/RTCPeerConnection-peerIdentity.html 
@@ -54,7 +54,7 @@  is, there is a current value for peerIdentity ), then this also establishes a  target peer identity.  */ - promise_test(() => { + promise_test(t => {  const pc1 = new RTCPeerConnection();  const pc2 = new RTCPeerConnection();